﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;

namespace Tecktest
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            //TestInvoke();
            //TestList();
            Console.ReadKey();
        }


        static void TestList()
        {
            List<int> lst = new List<int> { 1, 3, 12, 3, 4, 5, 17, 12 };
            var ll =   lst.Where((x, i) => lst.FindIndex(z => z == x) == i);
        }

        static void TestInvoke()
        {
            Action<string> ss = (x) =>
            {
                Thread.Sleep(1000);
                Console.WriteLine("bb");
            };

            ss.BeginInvoke("ss", (x) =>
            {
                Console.WriteLine("cc");
            }, null);
            Console.WriteLine("aaa");

        }


    }
}
